package ee.serge.client.content;

import com.google.gwt.user.client.ui.DecoratedPopupPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import ee.serge.util.Content;
import ee.serge.util.URLData;

public class PageNotFoundContent extends Content {

   private static final String NAME = "pagenotfound";
   
   public static String getName() {
      return NAME;
   }
   
   public static URLData getURLData() {
      URLData data = new URLData();
      data.add("name", NAME);
      return data;
   }
   
   public PageNotFoundContent() {
      add(new Label("Page not found!"));
      DecoratedPopupPanel popup = new DecoratedPopupPanel(true);
      popup.setWidget(new HTML("404<br>No page here!"));
      popup.setPopupPosition(250, 150);
      popup.setAnimationEnabled(true);
      popup.show();
   }
   
}
